package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sy
 * @since 2023-11-10
 */
@Getter
@Setter
@TableName("dragon_deliver_products")
public class DeliverProducts implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品id
     */
    private Integer quotesProductId;

    /**
     * 送货id
     */
    private Integer deliverId;

    /**
     * 合同数量
     */
    private Integer num;

    /**
     * 发货数量
     */
    private Integer deliverNum;


    /**
     * 本次发货数量
     */
    private Integer oneNum;

    /**
     * 产品id
     */
    @TableField(exist = false)
    private Integer productId;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    /**
     * 单位名称
     */
    @TableField(exist = false)
    private String unitName;

    /**
     * 产品名称
     */
    @TableField(exist = false)
    private String name;


    /***
     * 产品规格
     */
    @TableField(exist = false)
    private String specification;

    /**
     * 产品材质
     */
    @TableField(exist = false)
    private String vProductRemark;

    /**
     * 产品材质
     */
    @TableField(exist = false)
    private String vProductMaterial;


}
